package doctor;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;

/**
 * @author caiwl
 * @date 2020/5/25 10:06
 */
public class Main {
    public static void main(String[] args) {
        List<Doctor> doctors = new ArrayList<>();
        doctors.add(new Doctor(20, "主治医师", 2, "赵四"));
        doctors.add(new Doctor(20, "主治医师", 2, "吴勇"));
        doctors.add(new Doctor(3, "主任医师", 4, "孙权"));
        doctors.add(new Doctor(8, "医师", 1, "李世民"));
        doctors.add(new Doctor(10, "副主任医师", 3, "钱塘"));
        System.out.println(doctors.toString());

        Collections.sort(doctors);
        System.out.println(doctors.toString());
    }
}
